### Extending classes ###
class IndifferentHash < Hash
	def []=(key, value)
		super(key.to_s, value)
	end
	def [](key)
		super(key.to_s)
	end
end

# a bit of test code...
h = IndifferentHash.new
h["foo"] = "bar"
h[:foo] = "baz"
h["foo"] # should be "baz"
h[:foo] # should also be "baz"
